package me.qingji.zebra.bean;

public class Link {

	private String url;
	private String name;
	
	public Link() {
	}
	
	public Link(String url) {
		this.url = url;
	}
	public Link(String name, String url) {
		this.name = name;
		this.url = url;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("url:").append(url).append(",");
		sb.append("name:").append(name);
		return sb.toString();
	}
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj == null) {
			return false;
		}
		if(obj instanceof Link) {
			Link link = (Link)obj;
			return this.url.equals(link.getUrl());
		}
		return false;
	}

	
	
}
